home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-08-22 | 889 b | 21 lines | [TEXT/GEOL] |
- Item 9405155 21-July-89 09:22
-
- From: CHESLEY1 Chesley, Harry
-
- To: MACAPP.TECH$ MACAPP Tech
-
- Sub: Changing menus on the fly?
-
- I'd like to have the menu bar change depending upon which window is currently
- selected (actually, which view), since I have windows with very different
- functions, and functions which are defined at run-time, not compile-time. The
- best example that comes to mind is HyperCard adding a Paint menu when a paint
- tool is selected. Can someone tell me what's the "right" way to do that? (Or
- point me to a previous discussion of this topic.)
-
- I am currently maintaining a MenuHandle associated with each of the views
- involved. Then in DoSetupMenus, I do DeleteMenu/InsertMenu/DrawMenuBar, but
- only if it's different than the menu that's already there. This works. Is it
- elegant?
-
-